﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace DNA.Mvc
{
    /// <summary>
    /// Present the system for user change the password.
    /// </summary>
    public class PasswordChangedEvent : EventBase
    {
        public PasswordChangedEvent(string username, string oldPassword, string newPassword)
        {
            this.Password = newPassword;
            this.OldPassword = oldPassword;
            this.UserName = username;
        }

        /// <summary>
        /// Gets/Sets the user's password.
        /// </summary>
        public string Password { get; set; }

        public string OldPassword { get; set; }

        /// <summary>
        /// Gets/Sets the registed user name.
        /// </summary>
        public string UserName { get; set; }
    }
}
